package org.smoozik.app.common.partition;

import org.smoozik.app.ihm.Constants;

public class PartitionValues {
	private static PartitionValues instance;

	private int width;

	private PartitionValues() {
		this.width = Constants.DEFAULT_INTERVAL;
	}

	public static PartitionValues getInstance() {
		if (instance == null) {
			instance = new PartitionValues();
		}

		return instance;
	}

	public static int getWidth() {
		return getInstance().width;
	}

	public static int getPad() {
		return 3 * getWidth();
	}

	public static void setWidth(int width) {
		getInstance().width = width;
	}

}
